|
poziția meniului |
---|
Sketch → Sketcher constraints → Constrain coincident |
Ateliere |
Sketcher |
scurtătură |
C |
Prezentat în versiune |
- |
A se vedea, de asemenea, |
Constrain Lock, Constrain Point onto Object |
The Sketcher ConstrainCoincident tool creates a coincident constraint between points, or (introduced in version 0.21) a concentric constraint between circles, arcs and/or ellipses (by making their centers coincident).
introduced in version 1.0: This tool is replaced by the Sketcher ConstrainCoincidentUnified tool if the Unify Coincident and PointOnObject option is selected in the preferences.
See also: Drawing aids.
Constrângerea poate fi creată din macrocomenzi și din consola Python folosind următoarea comandă:
The constraint can be created from macros and from the Python console by using the following command:
Sketch.addConstraint(Sketcher.Constraint('Coincident',LineFixed,PointOfLineFixed,LineMoving,PointOfLineMoving))
unde :
As the names LineFixed
and LineMoving
indicate, if both constrained vertices are free to move in any direction, the first one (first to be selected in the Gui) will remain fixed and the other one will move. In the presence of existing constraints, however, both edges may move.
The Sketcher scripting page explains the values which can be used for LineFixed
, PointOfLineFixed
, LineMoving
and PointOfLineMoving
, and contains further examples on how to create constraints from Python scripts.